package com.mzy.SpringApi.AutowiredListOrMap;

import com.mzy.basics.Enums.DatePatternEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/6/14 13:38
 * @Version 1.0
 */
@Component("student")
public class StudentImpl implements IPerson {

    private Map<String,DatePatternEnum> datePatternEnum;

    @Override
    public void doWork() {
        System.out.println("I am studying");
    }

    /**
     * 设置映射
     */
    public StudentImpl(){
        System.out.println("构造函数");
    }

}